module 	forwarding_u(
    input	        [4:0]       rs1_i,
    input	        [4:0]       rs2_i,
    input           [4:0]       rd_ls,
    input           [4:0]       rd_wb,
    output	 reg    [1:0]		forwar_1,
    output	 reg    [1:0]		forwar_2
);
    always@(*)begin
        if(rs1_i == rd_ls)
            forwar_1=2'b01;
        else if(rs1_i == rd_wb)
            forwar_1=2'b10;
        else    
            forwar_1=2'b00;
    end

    always@(*)begin
        if(rs2_i == rd_ls)
            forwar_1=2'b01;
        else if(rs2_i == rd_wb)
            forwar_2=2'b10;
        else    
            forwar_2=2'b00;
    end
endmodule